<h1>Listing accounts</h1>

<table>
  <tr>
    <th>Mail</th>
    <th>Identity url</th>
  </tr>

<% for account in @accounts %>
  <tr>
    <td><%=h account.mail %></td>
    <td><%=h account.identity_url %></td>
    <td><%= link_to 'Show', account %></td>
    <td><%= link_to 'Edit', edit_account_path(account) %></td>
    <td><%= link_to 'Destroy', account, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New account', new_account_path %>
<%= link_to 'home', root_path %>
